博客
关于我
asp.net代码练习 work016 fileupload文件上传
阅读量:312 次
发布时间:2019-03-03

本文共 743 字,大约阅读时间需要 2 分钟。

????????

?? ASP.NET ??????????????????????????????????

????????

????????? ASP.NET ?????????????????????????????????????????????????

????????

???????????????????

  • ?????????
  • ?????????
  • ????????????????
  • ??????????
  • ??????
  • ??????????

    ???????????? MappedPath ??????????

    string savePath = Server.MapPath("~/upload");if (!System.IO.Directory.Exists(savePath)){    System.IO.Directory.CreateDirectory(savePath);}savePath = savePath + string.Format("\\{0}", FileUpload1.FileName);FileUpload1.SaveAs(savePath);

    ????????

    ?????????????? Web.config ?????????????????????????

    ????

    ????????????????????????????????????????????????

    ????

  • ? WebForm1.aspx ??? FileUpload ??
  • ?? OnClick ????
  • ????????????
  • ? Literal1 ?????????
  • ?????????????????????????????????????????

    转载地址:http://firm.baihongyu.com/

    你可能感兴趣的文章
    Nginx 动静分离与负载均衡的实现
    查看>>
    Nginx 反向代理 MinIO 及 ruoyi-vue-pro 配置 MinIO 详解
    查看>>
    Nginx 反向代理解决跨域问题
    查看>>
    Nginx 反向代理配置去除前缀
    查看>>
    nginx 后端获取真实ip
    查看>>
    Nginx 学习总结(17)—— 8 个免费开源 Nginx 管理系统,轻松管理 Nginx 站点配置
    查看>>
    nginx 常用配置记录
    查看>>
    Nginx 我们必须知道的那些事
    查看>>
    Nginx 的 proxy_pass 使用简介
    查看>>
    Nginx 的配置文件中的 keepalive 介绍
    查看>>
    Nginx 负载均衡与权重配置解析
    查看>>
    Nginx 负载均衡详解
    查看>>
    nginx 配置 单页面应用的解决方案
    查看>>
    nginx 配置https(一)—— 自签名证书
    查看>>
    nginx 配置~~~本身就是一个静态资源的服务器
    查看>>
    Nginx 配置解析:从基础到高级应用指南
    查看>>
    Nginx下配置codeigniter框架方法
    查看>>
    nginx添加模块与https支持
    查看>>
    Nginx用户认证
    查看>>
    Nginx的Rewrite正则表达式,匹配非某单词
    查看>>